package Exam2.exam1;

public class Exam1Test {
    public static void main(String[] args) {
        Exam1 exam1 = new Exam1();
        int array[][] = new int[16][16];

        exam1.setArray(array);//创建数组并赋值
        exam1.showArray(array);//输出数组
        System.out.println("行的累加和");
        exam1.addLine(array);//计算行的累加和
        System.out.println("列的累加和");
        exam1.addRow(array);//计算列的累加和
        System.out.println("对角线的累加和");
        exam1.addXie(array);//计算对角线的累加和

    }
}
